"""
生成器在UserList中的应用
"""

from collections import UserList


def use_userlist():
    user_list = UserList()
    user_list.append("Kevin")
    print(user_list)
    # 输出结果：
    """
    ['Kevin']
    """


if __name__ == '__main__':
    use_userlist()
